extends "../dafeng-2/dafeng-2.gd"


func _extInit():
	._extInit()
	lv = 3             #等级的设置
	addSkill("自身舰载机每秒损失8%血量且阵亡时：30%概率残血复活，20%概率连续发动2次神风", "命运之骰", "hqwx", 6)

func onSummDeath(atkInfo):
	.onSummDeath(atkInfo)
	if sys.rndPer(30):
		atkInfo.hitCha.isDeath = false
		atkInfo.hitCha.att.hp = 100
		if atkInfo.hitCha.hasBuff("b_dafeng3") == null:
			castBuff(atkInfo.hitCha, b_dafeng3.new())

	if sys.rndPer(20):
		shenFeng(atkInfo)
		shenFeng(atkInfo)

func castPlane():
	var cha = .castPlane()
	if cha != null:
		castBuff(cha, b_dafeng3.new())

class b_dafeng3:
	extends "../../../azurlane_ctrl/AzurBuff.gd"
	func _init():
		attInit()
		id = "b_dafeng3"
		dispel = 2
	func _upS():
		masCha.forceHurtSelf(masCha.att.maxHp * 0.08)